package com.eshop.service;

import com.eshop.model.Address;
import com.eshop.model.User;

import java.util.List;

public interface UserCenterService {
    public void updateUser(User user);

    public List<Address> getAddressByUserId(int userId);

    public Address getAddressByAddressId(int addressId);

    public void addAddress(Address address);

    public void deleteAddressByAddressId(int addressID);

    public void updateAddress(Address address);

    public Address getAddressByUserIdAndDefault(int userId, int isDefault);

    public void updateDefaultAddress(int userId, int addressId);
}
